home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.2
/
Video Toaster v4.2.iso
/
arexx
/
cg
/
savestate.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-12-28
|
1KB
|
46 lines
/* SaveState -- Save the state of the CG. */
/* By Bob Caron ©1994 NewTek, Inc. */
call addlib(CG_AREXX,0)
outfile="Toaster:Arexx/CG/Startup.Rexx"
call req_bar("Saving State...")
if (~open(outfd,outfile,W)) then
call REQ_TELL("Can't open output:",outfile)
writeln(outfd,"/* StartUp.Rexx -- Startup Script */")
writeln(outfd,"/* By A. Random User ©1994 NewTek, Inc. */")
writeln(outfd,"/* (Based on a program by Bob Caron.) */")
writeln(outfd,"")
writeln(outfd,"call addlib(CG_AREXX,0)")
writeln(outfd,"")
writeln(outfd,"call pickpage(NOT)")
writeln(outfd,"")
null=get_font(FIRST)
do while (font~="")
fontnsize=get_font(next)
font=fontnsize
if lastpos(',',fontnsize)~=0 then do
sizefnt=right(fontnsize,(length(fontnsize)-lastpos(',',fontnsize,length(fontnsize)-1)))
font=left(fontnsize,(lastpos(',',fontnsize,length(fontnsize))-1))
end
if font~="CommonThin.10" then
if (font~="") then writeln(outfd,'LOADFONT("'||font||'",'||sizefnt||')')
end
writeln(outfd,"")
writeln(outfd,"CALL REMLIB('CG_AREXX')")
call close(outfd)
call REQ_TELL("Fonts Saved...")
call req_bar("ToasterCG")
call REMLIB(CG_AREXX)
exit